﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SignUp.aspx.cs" Inherits="WebApplication1.CinemaKnights.SignUp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="Stylesheet" type="text/css" href="../Styles/CKdesign.css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
    <fieldset>
    <center>
    Account Information
    <br />
    <br />
    Username: <asp:TextBox ID="txtUsername" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvUsername" runat="server" 
            ControlToValidate="txtUsername" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Password: <asp:TextBox ID="txtPassword" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
            ControlToValidate="txtPassword" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Department: <asp:DropDownList ID="ddlDepartment" runat="server" Width="140px" 
            ForeColor="#333333" Height="25px" DataSourceID="SqlDataSource1" 
            DataTextField="DepartmentName" DataValueField="DepartmentName">
            <asp:ListItem Selected="True">Choose Department</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CinemaKnightsConnectionString %>" 
            SelectCommand="SELECT [DepartmentName] FROM [Department]">
        </asp:SqlDataSource>
        <asp:RequiredFieldValidator ID="rfvDepartment" runat="server" 
            ControlToValidate="ddlDepartment" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Enter Student Number: <asp:TextBox ID="txtStudentNumber" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvStudentNumber" runat="server" 
            ControlToValidate="txtStudentNumber" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
        Name: <asp:TextBox ID="txtName" runat="server" Width="140px" 
            ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvName" runat="server" 
            ControlToValidate="txtName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Course: <asp:TextBox ID="txtCourse" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvCourse" runat="server" 
            ControlToValidate="txtCourse" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Year: <asp:DropDownList ID="ddlYear" runat="server" Width="140px" 
            ForeColor="#033333" Height="25px" DataSourceID="Year" DataTextField="Year" 
            DataValueField="Year">
            <asp:ListItem Selected="True">Choose Year</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="Year" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CinemaKnightsConnectionString %>" 
            SelectCommand="SELECT [Year] FROM [Year]"></asp:SqlDataSource>
        <asp:RequiredFieldValidator ID="rfvYear" runat="server" 
            ControlToValidate="ddlYear" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Section: <asp:TextBox ID="txtSection" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvSection" runat="server" 
            ControlToValidate="txtSection" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    Email: <asp:TextBox ID="txtEmail" runat="server" Width="140px" ForeColor="#333333" Height="25px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
            ControlToValidate="txtEmail" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <asp:Button ID="btnSignUP" runat="server" Text="Sign Up" 
            onclick="btnSignUP_Click" />
    </center>
    </fieldset>
    </center>
    </div>
    </form>
</body>
</html>
